﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Predmeti.aspx.cs" MaintainScrollPositionOnPostback="true" Inherits="Predmeti" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>Предмети</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="lblIme" runat="server" Text=""></asp:Label><br />
    <asp:Label ID="lblPrezime" runat="server" Text=""></asp:Label><br />
    <asp:Label ID="lblIndeks" runat="server" Text=""></asp:Label>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<h2><span class="blue">Предмети</span></h2>
    <center> 
        <asp:GridView ID="gvPredmeti" runat="server" AutoGenerateColumns="False" ForeColor="#333333" GridLines="None" CellPadding="50" CellSpacing="10">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Predmet" HeaderText="Предмет" />
                <asp:TemplateField HeaderText="Професор">
                    <ItemTemplate>
                     <%# Eval("Ime") + " " + Eval("Prezime")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CheckBoxField DataField="eden" HeaderText="Лаб 1" ReadOnly="True" />
                <asp:CheckBoxField DataField="dva" HeaderText="Лаб 2" ReadOnly="True" />
                <asp:CheckBoxField DataField="tri" HeaderText="Лаб 3" ReadOnly="True" />
                <asp:CheckBoxField DataField="cetiri" HeaderText="Лаб 4" ReadOnly="True" />
                <asp:CheckBoxField DataField="pet" HeaderText="Лаб 5" ReadOnly="True" />
                <asp:CheckBoxField DataField="sest" HeaderText="Лаб 6" ReadOnly="True" />
                <asp:CheckBoxField DataField="sedum" HeaderText="Лаб 7" ReadOnly="True" />
                <asp:TemplateField HeaderText="Потпис">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="potpis" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>   
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#299DCA" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </center> 
    <br /><br />
    <h4><span class="blue">Термин за консултации&nbsp;&nbsp;
       
        </span></h4>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        Предмети:</td>
                    <td>
                        Професори:</td>
                    
                </tr>
                <tr>
                    <td>
                        <asp:ListBox ID="lbPredmet" runat="server" AutoPostBack="True" Height="180px" 
                            onselectedindexchanged="lbPredmet_SelectedIndexChanged" Width="220px">
                        </asp:ListBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td>
                        <asp:ListBox ID="lbProf" runat="server" AutoPostBack="True" Height="180px" 
                            onselectedindexchanged="lbProf_SelectedIndexChanged" Width="220px">
                        </asp:ListBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td align="center" style="width:220px; height:180px;">
                        <h4>
                            <asp:Label ID="lblKonsultacii" runat="server"></asp:Label>
                        </h4s>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>

    <br />
    </asp:Content>

